package net;

 import java.io.BufferedReader;  
 import java.io.IOException;  
 import java.io.InputStreamReader;  
 import java.net.MalformedURLException;  
import java.net.Proxy;
 import java.net.URL;  
import java.net.URLConnection;  

public class ConnectHttp {
	 public static void main(String[] args)  
	      throws MalformedURLException, IOException {  
	       URL url = new URL("http://lefunes.wordpress.com");  
	       URLConnection con = url.openConnection(); 
	       //Proxy p = new Proxy();
	   
	       BufferedReader in = new BufferedReader(  
	          new InputStreamReader(con.getInputStream()));  
	   
	      String linea;  
	       while ((linea = in.readLine()) != null) {  
	          System.out.println(linea);  
	       }  
	    }  
}
